html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}



/* Vlastní styl pro tlačítka ve stylu Divi */
.btn-primary {
    background-color: #007bff; /* Nahraďte barvou z vašeho webu */
    border-radius: 50px; /* Divi má často hodně zaoblená tlačítka */
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0056b3;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

/* Úprava rámečků inputů */
.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

/* Definice naší hlavní barvy */
.text-amaeasy {
    color: #005153 !important;
}

/* Pokud chcete, aby i popisky (labely) byly touto barvou */
.form-label {
    color: #005153;
    font-weight: 500;
}

/* Bonus: Barva pro hlavní tlačítko */
.btn-amaeasy {
    background-color: #005153;
    color: white;
    border: none;
}

    .btn-amaeasy:hover {
        background-color: #003d3f; /* Trochu tmavší při najetí myší */
        color: white;
    }


/* Styl pro kartu (boxík), ve kterém je formulář */
.card {
    border-radius: 15px; /* Zaoblené rohy jako v Divi */
    background-color: #ffffff;
}

/* Úprava inputů (políček) */
.form-control {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 12px;
}

    .form-control:focus {
        border-color: #005153;
        box-shadow: 0 0 0 0.25rem rgba(0, 81, 83, 0.1);
    }

/* Odkazy bez podtržení (pokud na ně nenajedete) */
.text-amaeasy {
    text-decoration: none;
    font-weight: 500;
}

    .text-amaeasy:hover {
        text-decoration: underline;
    }


.btn-outline-secondary {
    border-color: #005153;
    color: #005153;
}

    .btn-outline-secondary:hover {
        background-color: #005153;
        border-color: #005153;
        color: white;
    }

/* Vypnutí podtržení u odkazu v Logu */
.navbar-brand:hover {
    color: #003d3f !important;
}

/* Hlavní nastavení menu */
#top-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

    #top-menu > li {
        position: relative;
        padding: 0 15px;
    }

    #top-menu a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: 15px;
        transition: color 0.3s ease;
    }

        #top-menu a:hover {
            color: #005153;
        }

/* Styl pro rozbalovací menu (Sub-menu) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    display: none; /* Schované */
    z-index: 1000;
    border-top: 3px solid #005153;
}

    .sub-menu li a {
        padding: 10px 20px;
        display: block;
        font-size: 14px;
        font-weight: 400;
    }

        .sub-menu li a:hover {
            background-color: #f8f9fa;
            color: #005153;
        }


/* Vynucení horizontálního řazení pro celé menu */
#top-menu, .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mezery mezi všemi položkami menu */
.menu-item, .nav-item {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

    /* Speciální oprava pro tlačítko Logout, aby nevyskakovalo z řady */
    .menu-item form {
        display: inline;
        margin: 0;
    }

    .menu-item button.nav-link {
        background: none;
        border: none;
        font-weight: 600;
        font-size: 15px;
        color: #333;
    }

/* Zarovnání doplňkových odkazů (Register/Login) */
#top-menu-nav .nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-decoration: none;
}

/* Zobrazení při najetí myší */
.has-children:hover .sub-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Styl pro zelené tlačítko KONTAKT */
.tlacitko a {
    background-color: #005153 !important;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 50px;
    transition: transform 0.2s ease;
}

    .tlacitko a:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KONTEJNER FLIP BOXU */
.ama-flip-box {
    background-color: transparent;
    height: 400px; /* Upravte výšku podle potřeby */
    perspective: 1000px; /* Důležité pro 3D efekt */
}

/* VNITŘNÍ ČÁST, KTERÁ SE OTÁČÍ */
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.ama-flip-box:hover .flip-inner {
    transform: rotateY(180deg);
}

/* SPOLEČNÉ VLASTNOSTI PŘEDNÍ A ZADNÍ STRANY */
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Schová odvrácenou stranu */
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* PŘEDNÍ STRANA (Vzhled podle návrhu) */
.flip-front {
    background-color: #ffffff;
    color: #005153;
}

    .flip-front h4 {
        margin-top: 20px;
        font-weight: 600;
    }

    .flip-front img {
        height: 60px;
        width: auto;
    }

/* ZADNÍ STRANA (Zelená Amaeasy) */
.flip-back {
    background-color: #005153;
    color: #ffffff;
    transform: rotateY(180deg);
}

    .flip-back h4 {
        color: white;
        margin-bottom: 15px;
    }

    .flip-back .btn-light {
        margin-top: 20px;
        color: #005153;
        font-weight: 600;
    }

/* Sekce expertízy - fonty a váhy */
.expertise-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

/* Úprava Outline verze našeho tlačítka */
.btn-ama-supreme.outline {
    background-color: transparent;
    border: 2px solid #005153;
    color: #005153 !important;
}

    .btn-ama-supreme.outline:hover {
        background-color: #005153;
        color: #fff !important;
    }


/* Font - doporučuji Montserrat nebo podobný geometrický sans-serif */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #003d3f;
}

/* HERO SEKCE */
.hero-section {
    padding: 80px 0;
    overflow: hidden;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: #005153;
    margin-bottom: 2.5rem;
    text-align: left;
}

.sub-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 3rem;
}

/* TO MAGICKÉ "AE" */
.ae-mask {
    font-size: 28rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -20px;
    
    /* Mix barev: První je vaše zelená, druhý je obrázek */
    background: #005153 url('/images/ae-background.jpg');
    background-size: cover;
    background-position: center;
    
    /* Tento řádek vytvoří ten zelený tón (prolnutí) */
    background-blend-mode: multiply; 
    
    /* Maska na text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    opacity: 0.9;
    user-select: none;
    display: inline-block;
}

/* TLAČÍTKA */
.btn-ama-solid {
    background-color: #005153;
    color: white !important;
    padding: 12px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    display: inline-block;
}

.btn-ama-outline {
    border: 1px solid #005153;
    color: #005153 !important;
    padding: 12px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* EXPERTISE SEKCE */
.expertise-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #005153;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #005153;
    font-weight: 300;
}

.service-item img {
    height: 70px;
    margin-bottom: 25px;
}

.service-item h4 {
    font-size: 1.3rem;
    color: #005153;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    padding: 0 15px;
}


/* SEKCE EXPERTI */
.experts-section .section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Zvýrazněné řádky v textu (Wir haben..., Ein starkes Team...) */
.p-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #005153;
    margin-bottom: 0.5rem;
}

/* Obecný text v této sekci */
.expert-paragraphs p:not(.p-highlight) {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Jemné doladění obrázku */
.expert-image-wrapper img {
    width: 100%;
    /* Zaoblení rohů podle obrázku */
    border-radius: 20px;
    transition: transform 0.5s ease;
}

    .expert-image-wrapper img:hover {
        transform: scale(1.02); /* Jemný zoom efekt při najetí */
    }


/* --- SEKCE PROCES (Osa) --- */
.process-row {
    position: relative;
}

    /* Linka na pozadí bodů */
    .process-row::before {
        content: '';
        position: absolute;
        /* Musí odpovídat vaší upravené pozici 'top' */
        top: 48px;
        /* 15px je standardní Bootstrap gutter (odsazení sloupce) */
        left: 15px;
        right: 15px;
        height: 1px;
        background-color: #e0e0e0;
        z-index: 1;
    }

.process-item {
    position: relative;
    z-index: 2;
    text-align: left;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #005153;
    margin-bottom: 30px;
    text-transform: uppercase;
    
}

.step-dot {
    width: 12px;
    height: 12px;
    background-color: #005153;
    border-radius: 50%;
    /* Změna: odstraníme 'margin: 0 auto' a dáme nulu vlevo */
    margin: 0 0 25px 0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

/* --- SEKCE EXPERTISE CARD (Tmavý box) --- */
.expertise-card {
    background: linear-gradient(135deg, #2c3e50 0%, #005153 100%); /* Tmavý teal gradient */
    border-radius: 10px;
}

.expertise-list-section i {
    color: #fff;
    font-weight: bold;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    .process-row::before {
        display: none;
    }
    /* Na mobilu linku schováme */
    .process-item {
        margin-bottom: 30px;
    }
}