/* ============================================
   WEDDING WEBSITE STYLES - Tamara & Thomas
   ============================================ */

/* Base Layout */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: 'Arapey', serif;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    background: #f8f8f8;
    color: #222;
    background: url('../img/DSC00665-307.jpg') center center/cover no-repeat fixed;
}

@font-face {
    font-family: 'Amsterdam Four';
    src: url('../fonts/Amsterdam Four_ttf 400.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    display: flex;
    flex-direction: column;
}

/* Section Layout */
section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Landing Page */
#Start {
    position: relative;
    background: url('../img/DSC00665-307.jpg') center center/cover no-repeat;
    color: white;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.7);
}
#Start .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}
#Start .content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
}
#Start h1 {
    font-size: 3.2rem;
    margin-bottom: 0.2em;
    font-weight: 300;
}
#wearegettingmarried {
	font-family: 'Amsterdam Four', 'Arapey';
    font-size: 5.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}
#countdown {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Content Containers */
.container {
    max-width: 650px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 32px;
    margin: 40px auto;
    color: #222;
}
.container::after {
    content: "";
    display: block;
    width: 40px;
    height: 20px;
    margin: 36px auto 0 auto;
    background-image: url('img/herzen-cropped.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Special Container Sizes */
.invitation-container {
    max-width: 300px;
}
.trauzeugen-container {
    max-width: 300px;
}

/* Typography */
h2 {
    text-align: center;
    font-weight: 300;
    margin-bottom: 24px;
}
.centered {
    text-align: center;
}
.construction-icon {
    font-size: 3em;
}

/* Lists */
ul {
    padding-left: 20px;
}
ul li {
    margin-bottom: 8px;
}

/* Icons */
.icon {
    color: #7b503f;
    margin-right: 10px;
}
.icon_wo_margin {
    color: #7b503f;
}
.nav-heart {
    height: 14px;
}
.section-heart {
    height: 20px;
}

/* Icon-Text Layout */
.icon-text {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.left-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 12px;
}
.icon-text p {
    margin: 0;
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    background: #f2f2f2;
    z-index: 10000;
    pointer-events: auto;
    padding: 5px 5px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Arapey', serif;
}
.nav-left {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
    margin: 0; /* Kein margin */
    padding: 8px 4px; /* Minimal padding für Klickbarkeit */
    pointer-events: auto;
					
					 
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px; /* Nur min-height für Touch-Targets */
}
.main-nav a.active {
    font-weight: bold;
    color: red;
}
.main-nav a.active i {
    color: red;
}
.main-nav a span {
    display: none;
    margin-left: 0.4em;
}
.main-nav a i {
    color: #7b503f;
}

/* Show text on larger screens */
@media (min-width: 450px) {
    .main-nav a.active span {
        display: inline;
        animation: fadeIn 0.3s ease;
    }
    .nav-left {
        gap: 0;
    }
    .main-nav a {
        padding: 8px 6px; /* Etwas mehr padding auf größeren Screens */
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.3em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Font Size Controls - AUCH KOMPAKT */
.font-size-controls {
    display: flex;
    gap: 0;
    align-items: center;
    font-size: 1.2rem;
    user-select: none;
}
.font-size-controls i {
    cursor: pointer;
    margin: 0; /* Kein margin */
    padding: 8px 4px; /* Minimal padding */
    color: #7b503f;
    pointer-events: auto;
					
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.font-size-controls i:hover {
    color: red;
}
.font-size-controls button {
    font-size: 1rem;
    padding: 0.3em 0.6em;
    margin-left: 5px;
    cursor: pointer;
}

/* Search Field */
.search-field {
    position: absolute;
    right: 10px;
    top: 45px;
    padding: 4px 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Search Highlighting */
mark.highlighted {
    background: yellow;
    color: black;
    padding: 0 2px;
}
mark.current-result {
    background: orange;
    color: black;
}

/* Links */
a {
    color: red;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Mobile Optimierungen */
@media (max-width: 700px) {
			  
    html, body {
        font-size: 0.85em;
    }
    
				  
    section {
        padding: 15px 8px;
        align-items: center;
        justify-content: center;
	  
	
    }
    
		   
    .container {
        max-width: 95vw;
        padding: 20px 16px;
        margin: 25px auto;
        max-height: 80vh;
        overflow-y: auto;
    }
    
			   
    .main-nav {
        padding: 2px 2px;
        font-size: 0.95em;
    }
    
    .main-nav a {
        margin: 0;
        padding: 6px 3px; /* Noch kompakter */
        min-height: 36px;
        font-size: 0.95em;
						 
    }
    
    .nav-left {
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
		   
    .font-size-controls {
        gap: 0;
    }
    
    .font-size-controls i {
        margin: 0;
        padding: 6px 3px;
        min-height: 36px;
        font-size: 1.1em;
		
    }
    
		  
    .left-icon {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .construction-icon {
        font-size: 2em;
    }
    
    #Start h1 {
        font-size: 2.5rem;
    }
    
    #countdown {
        font-size: 1.5rem;
    }
}

/* Für sehr kleine Bildschirme */
@media (max-width: 500px) {
	  
	  
  
 
    .main-nav a {
        margin: 0;
        padding: 6px 2px; /* Extrem kompakt */
        min-height: 32px;
					 
    }
    
    .font-size-controls i {
        margin: 0;
        padding: 6px 2px;
        min-height: 32px;
		
    }
}
