/* Allgemeine Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Vollständige Höhe für Body und HTML */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Flexbox Layout für vertikales Layout */
    justify-content: space-between; /* Inhalt und Footer werden entsprechend verteilt */
}

/* Header-Bereich mit 100% Breite */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #333;
    position: relative; /* Kein fixes Positionieren, damit er mitscrollt */
    top: 0; /* Direkt am oberen Rand */
    z-index: 1; /* Sicherstellen, dass er über anderen Inhalten liegt */
}

/* Logo */
.logo img {
    max-width: 80%;
    height: auto;
	  margin-left: 20px; /* Abstand für das Logo */
}

/* Zentrierte h1-Überschrift im Hauptinhalt */
main h1{
    text-align: center;
}

main h2{
    text-align: center;
}

/* QR-Text-Sektion - Links ausgerichteter Text */
.qr-text-section {
    text-align: left; /* Alle Textelemente innerhalb dieser Sektion linksbündig */
    padding-left: 20px; /* Optional: Falls etwas Abstand gewünscht wird */
    max-width: 800px; /* Optionale maximale Breite */
}

/* Anpassung der Paragraphen im qr-text-section */
.qr-text-section p,
.qr-text-section h1,
.qr-text-section h2,
.qr-text-section ul {
    text-align: left; /* Sicherstellen, dass alle Textelemente linksbündig sind */
    margin-bottom: 20px; /* Etwas Abstand zwischen den Elementen */
}

/* Hamburger Menü für Mobilgeräte */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
	margin-left: 20px; /* Beibehaltung des Abstands in der mobilen Ansicht */
    margin-top: 10px; /* Platz unter dem Logo in der mobilen Ansicht */
}

/* Menü */
.menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.menu ul {
    list-style: none;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu ul li a:hover {
    color: #ffcc00;
    background-color: #444;
    border-radius: 5px;
}

/* Zweispaltiges Layout für den Hauptinhalt (Desktop-Ansicht) */
.content-wrapper {
    display: flex;
    justify-content: center; /* Zentriert die Inhalte */
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hauptinhalt */
main {
    flex: 1; /* Hauptinhalt nimmt den restlichen Platz ein */
    padding: 20px;
    width: 100%;
}
/* Kontaktformular in einem Container */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Zentrierter Text über dem Kontaktformular */
main p {
    max-width: 700px;
    margin: 0 auto 20px auto; /* Gleiche Breite wie das Kontaktformular */
    text-align: center;
}

/* Kontaktformular-Stil für den Blindtext-Generator */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input, .contact-form select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #218838;
}


/* Zweispaltiges Layout für den Hauptinhalt (Desktop-Ansicht) */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    align-items: flex-start; /* QR-Code und Text oben bündig in der Desktop-Ansicht */
}

/* QR-Code Generator */
.qr-generator {
    margin: 0;
    padding: 0;
    width: 100%;
}

.qr-frame {
    width: 100%; /* Volle Breite in der mobilen Ansicht */
    max-width: 400px; /* Begrenzung der maximalen Breite */
    border: none;
    height: 800px; /* Setze eine größere Höhe, falls notwendig */
    display: block;
   
    margin: 0 auto 30px auto; /* Zentriert und Abstand nach unten */
}

/* QR-Code Generator Container */
.container {
    position: relative;
    text-align: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin-top: 60px;
    font-size: 14px;
}

/* Registerkarten (Tabs) für QR-Code Generator */
.tab-menu {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
}

.tab-button {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    margin-right: -5px;
    border-radius: 5px 5px 0 0;
    z-index: 1;
    position: relative;
    font-size: 14px;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: none;
    z-index: 2;
}

.tab-button:hover {
    background-color: #f0f0f0;
}

.tab-button:last-child {
    margin-right: 0;
}

/* Inhalt der Tabs */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

.input-field, .input-url {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* Mehrzeiliges Textfeld für den Text-Tab */
.input-textarea {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* URL-Eingabe mit festem Präfix */
.url-field {
    display: flex;
    align-items: center;
}

.url-field span {
    font-size: 14px;
    color: #555;
    background-color: #f0f0f0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.input-url {
    border-left: none;
    border-radius: 0 5px 5px 0;
}

/* VCard im Grid Layout */
.vcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-generate {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    font-size: 14px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.btn-download {
    padding: 10px;
    background-color: #aaa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    width: 30%;
}

.btn-download:hover {
    background-color: #888;
}

/* Footer */
footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Mobilansicht */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Hamburger-Menü nur in der Mobilansicht anzeigen */
        margin-top: 10px; /* Abstand unter dem Logo */
    }

    .menu {
        display: none;
    }

    .menu ul {
        flex-direction: column;
    }

    .menu ul li {
        margin: 10px 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-wrapper {
        flex-direction: column; /* In der mobilen Ansicht alles untereinander */
    }

    .qr-frame {
        width: 90%; /* Reduziert die Breite auf 90% in der mobilen Ansicht */
        max-width: 100%; /* Keine feste Breite in der mobilen Ansicht */
        height: 1000px; /* Automatische Höhe */
		
        margin-bottom: 40px; /* Größerer Abstand zum nachfolgenden Text */
    }
	
	 .blindtext-row {
        flex-direction: column;
    }

     .blindtext-row {
        flex-direction: column; /* Stapelt die Felder untereinander */
    }

    .blindtext-row select, .blindtext-row input {
        width: 100%; /* Stellt sicher, dass alle Felder die volle Breite einnehmen */
        box-sizing: border-box; /* Bezieht Padding in die Breite mit ein */
    }

    .blindtext-btn {
        width: 100%; /* Button ebenfalls volle Breite */
    }
	
	  /* Maßstab-Umrechner - Zeilen untereinander statt nebeneinander */
    .mass-row {
        flex-direction: column; /* Stapelt die Felder untereinander */
    }

    .mass-row input, .mass-row span {
        width: 100%; /* Stellt sicher, dass die Eingabefelder die volle Breite einnehmen */
        box-sizing: border-box; /* Bezieht Padding in die Breite mit ein */
        margin-bottom: 10px; /* Fügt etwas Abstand zwischen den Feldern hinzu */
    }

    .mass-row label {
        width: 100%; /* Sicherstellen, dass das Label die volle Breite einnimmt */
        margin-bottom: 5px; /* Fügt Abstand zwischen Label und Eingabefeld hinzu */
    }
	
	   /* Logo anpassen in der mobilen Ansicht */
    .logo img {
        max-width: calc(100% - 40px); /* Logo passt sich dem Bildschirm an und berücksichtigt 20px Abstand zu jeder Seite */
        height: auto; /* Proportionen des Logos beibehalten */
        margin: 20px; /* 20px Abstand oben, unten, links und rechts */
    }
}


/* Blindtext-Formular spezifischer Stil */
.blindtext-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flexibles Layout für die Felder im Blindtext-Generator */
.blindtext-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blindtext-row label {
    flex: 1;
    font-weight: bold;
}

.blindtext-row select, .blindtext-row input {
    flex: 2;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button für den Blindtext-Generator */
.blindtext-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blindtext-btn:hover {
    background-color: #218838;
}

/* Ausgabefenster-Stil für den Blindtext-Generator */
.blindtext-output-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    min-height: 200px;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap; /* Zeilenumbrüche beibehalten */
}

/* Zentrierung des Headers */
header {
    text-align: center;
    padding: 10px 0;
}

/* Maßstab-Formular spezifischer Stil */
.mass-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flexibles Layout für die Felder im Maßstab-Umrechner */
.mass-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mass-row label {
    flex: 1;
    font-weight: bold;
}

.mass-row input, .mass-row span {
    flex: 2;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button für den Maßstab-Umrechner */
.mass-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mass-btn:hover {
    background-color: #218838;
}

/* Ausgabefenster-Stil für den Maßstab-Umrechner */
.mass-output-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    min-height: 200px;
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-wrap; /* Zeilenumbrüche beibehalten */
}