/*
Theme Name: Schartner & Kofler
Theme URI: https://schartnerkofler.at
Author: Manuel Sampl
Author URI: https://manuelsampl.com
Description: Modern WordPress Theme mit ACF Pro & Pico CSS für Rechtsanwaltskanzlei Schartner & Kofler
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schartnerkofler
*/

/* ============================================
   BASE VARIABLES
   ============================================ */
:root {
    --primary-color: #5a9198;
    --text-color: #000000;
    --gray-color: #727071;
    --white-color: #ffffff;

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Karla', sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 40px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding: 0px !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

/* H1 - H3: Syne, font-weight 300 */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.4rem;
}

/* H4 - H6: Space body, uppercase, letter-spacing */
h4,
h5,
h6 {
    font-family: var(--font-body);
    font-size: 14px !important;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.footer-column-headline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Stagger animation delays */
.fade-in-up:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in-up:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in-up:nth-child(6) {
    animation-delay: 0.6s;
}

.wpforms-field-label {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin-bottom: 12px !important;

}

div.wpforms-container-full input[type=date],
div.wpforms-container-full input[type=datetime],
div.wpforms-container-full input[type=datetime-local],
div.wpforms-container-full input[type=email],
div.wpforms-container-full input[type=month],
div.wpforms-container-full input[type=number],
div.wpforms-container-full input[type=password],
div.wpforms-container-full input[type=range],
div.wpforms-container-full input[type=search],
div.wpforms-container-full input[type=tel],
div.wpforms-container-full input[type=text],
div.wpforms-container-full input[type=time],
div.wpforms-container-full input[type=url],
div.wpforms-container-full input[type=week],
div.wpforms-container-full select,
div.wpforms-container-full textarea,
.wp-core-ui div.wpforms-container-full input[type=date],
.wp-core-ui div.wpforms-container-full input[type=datetime],
.wp-core-ui div.wpforms-container-full input[type=datetime-local],
.wp-core-ui div.wpforms-container-full input[type=email],
.wp-core-ui div.wpforms-container-full input[type=month],
.wp-core-ui div.wpforms-container-full input[type=number],
.wp-core-ui div.wpforms-container-full input[type=password],
.wp-core-ui div.wpforms-container-full input[type=range],
.wp-core-ui div.wpforms-container-full input[type=search],
.wp-core-ui div.wpforms-container-full input[type=tel],
.wp-core-ui div.wpforms-container-full input[type=text],
.wp-core-ui div.wpforms-container-full input[type=time],
.wp-core-ui div.wpforms-container-full input[type=url],
.wp-core-ui div.wpforms-container-full input[type=week],
.wp-core-ui div.wpforms-container-full select,
.wp-core-ui div.wpforms-container-full textarea {
    border: 0px solid var(--primary-color) !important;
    border-radius: 0px !important;
}

/* ============================================
   BUTTONS & CTA
   ============================================ */
.btn,
.cta-button {
    display: inline-block !important;
    padding: 14px 32px !important;
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    text-decoration: none !important;
    height: auto !important;
}

.btn:hover,
.cta-button:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(90, 145, 152, 0.3) !important;
    opacity: 1 !important;
}

.btn-outline {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.btn-outline:hover {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.cta-button-light {
    background-color: white !important;
    border: 2px solid white !important;
    color: var(--primary-color) !important;
}

.cta-button-light:hover {
    background-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

/* ============================================
   CONTENT SECTION (Cloned ACF Field)
   ============================================ */
.content-section {
    width: 100%;
}

.content-section .subheadline {
    font-family: var(--font-body);
    color: inherit;
    font-size: 14px !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.content-section .headline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: inherit;
}

.content-section .richtext-content {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 32px;
    color: inherit;
}

.content-section .richtext-content p {
    margin-bottom: 16px;
    line-height: 1.4;
}

.content-section .richtext-content p:last-child {
    margin-bottom: 0;
}

.content-section .richtext-content a {
    color: var(--section-text-color, var(--primary-color));
    text-decoration: underline;
}

.content-section .richtext-content a:hover {
    color: var(--section-hover-color, var(--gray-color));
    opacity: 1;
}

/* Text Alignment Variants */
.content-section.text-center {
    text-align: center;
}

.content-section.text-left {
    text-align: left;
}

.content-section.text-right {
    text-align: right;
}

.footer-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.95rem;
    }

    .content-section .headline {
        font-size: 2rem;
    }

    .content-section .subheadline {
        font-size: 0.85rem;
    }

    .content-section .richtext-content {
        font-size: 0.95rem;
    }

    .btn,
    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }

    .container {
        padding: 0 16px;
    }
}